package com.ruoyi.consultationreply.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.consultationreply.mapper.ConsultationreplyMapper;
import com.ruoyi.consultationreply.domain.Consultationreply;
import com.ruoyi.consultationreply.service.IConsultationreplyService;

/**
 * 资讯回复信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-07
 */
@Service
public class ConsultationreplyServiceImpl implements IConsultationreplyService 
{
    @Autowired
    private ConsultationreplyMapper consultationreplyMapper;

    /**
     * 查询资讯回复信息
     * 
     * @param replyId 资讯回复信息主键
     * @return 资讯回复信息
     */
    @Override
    public Consultationreply selectConsultationreplyByReplyId(Long replyId)
    {
        return consultationreplyMapper.selectConsultationreplyByReplyId(replyId);
    }

    /**
     * 查询资讯回复信息列表
     * 
     * @param consultationreply 资讯回复信息
     * @return 资讯回复信息
     */
    @Override
    public List<Consultationreply> selectConsultationreplyList(Consultationreply consultationreply)
    {
        return consultationreplyMapper.selectConsultationreplyList(consultationreply);
    }

    /**
     * 新增资讯回复信息
     * 
     * @param consultationreply 资讯回复信息
     * @return 结果
     */
    @Override
    public int insertConsultationreply(Consultationreply consultationreply)
    {
        return consultationreplyMapper.insertConsultationreply(consultationreply);
    }

    /**
     * 修改资讯回复信息
     * 
     * @param consultationreply 资讯回复信息
     * @return 结果
     */
    @Override
    public int updateConsultationreply(Consultationreply consultationreply)
    {
        return consultationreplyMapper.updateConsultationreply(consultationreply);
    }

    /**
     * 批量删除资讯回复信息
     * 
     * @param replyIds 需要删除的资讯回复信息主键
     * @return 结果
     */
    @Override
    public int deleteConsultationreplyByReplyIds(Long[] replyIds)
    {
        return consultationreplyMapper.deleteConsultationreplyByReplyIds(replyIds);
    }

    /**
     * 删除资讯回复信息信息
     * 
     * @param replyId 资讯回复信息主键
     * @return 结果
     */
    @Override
    public int deleteConsultationreplyByReplyId(Long replyId)
    {
        return consultationreplyMapper.deleteConsultationreplyByReplyId(replyId);
    }
}
